package com.wb.creational.builder;

/**
 * @author 魏彪
 */
public abstract class ActorBuilder {
    protected Actor actor = new Actor();

    public abstract void buildType();

    public abstract void buildSex();

    public abstract void buildFace();

    public abstract void buildCostume();

    public abstract void buildHairstyle();

    /**
     * 钩子方法
     *
     * @return boolean
     */
    public boolean isBareheaded() {
        return false;
    }

    public Actor createActor() {
        return actor;
    }
}
